package com.dowsure.apisaas.enums;

/**
 * @description: 失败原因
 * @author: Dowsure
 * @create: 2022-02-21 17:41
 **/
public enum SellerReasonEnums {

    NOT_SUPPORT("NOT_SUPPORT", "店铺非美国站、德国站"),
    ACCOUNT_LOCKED("ACCOUNT_LOCKED", "店铺目前已锁定收款账户"),
    ACCOUNT_RISK_MANAGEMET("ACCOUNT_RISK_MANAGEMET", "店铺未满足亚马逊风控审核，经营风险")
    ;

    private String value;

    private String describe;

    SellerReasonEnums(String value, String describe){
        this.value = value;
        this.describe = describe;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }

    public static SellerReasonEnums fromValue(String text) {
        for (SellerReasonEnums b : SellerReasonEnums.values()) {
            if (String.valueOf(b.value).equals(text)) {
                return b;
            }
        }
        return null;
    }
}
